package com.dendi.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RequestMapping("/page")
public class PageController {
    @RequestMapping("/login")
    public void login(HttpServletResponse response){
        try {
            response.sendRedirect("/html/login.html");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
